<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.ArrayList"%>

<%@page import="Modelo.Veiculo;"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SLV</title>
<link rel="stylesheet" type="text/css" href="CSS/Base.css" />
<link rel="stylesheet" type="text/css" href="CSS/manterVeiculo.css" />
</head>
<body>
	<div id="logo">
	  <div id="idioma">
	  </div>	
	</div>
	<div id="base">
	<div id='cssmenu'>
	<ul>
	   <li class='active'><a href='FrontController?cod=1'><span>Voltar</span></a></li>
	</ul>
	</div>
		<div id="tab">
			<form action="FrontController" method="post">
			<div id="opcoes">
			<table border="0" cellspacing="0" >
				<% String placa = (String)request.getSession().getAttribute("placa"); %>
				<tr>
					<td>Placa:</td>
					<td><input readonly="readonly" type="text" name="placa" value="<%=placa%>"></td>
				</tr>
				<tr>
					<td>Chassi:</td>
					<td><input type="text" name="chassi"></td>
				</tr>
				<tr>
					<td>Grupo:</td>
					<td><select name="grupo">
						<option value="Nenhum" selected>Nenhum</option>
							<% 
							String[] grupo = { "A – Econômico","C – Econômico com Ar", "F – Intermediário","G – Intermediário Wagon Especial",
									"H – Executivo","I – Utilitário",
									"K – Executivo Luxo", "M – Intermediário Wagon",
									"N – Pick-up", "P – 4 x 4 Especial", "R – Minivan", "U – Furgão",
									"Y – Blindado" };
							for(int i =0;i < grupo.length;i++){
							%>
							<option value="<%=grupo[i]%>"><%=grupo[i]%></option>
							<%
							}
							%>
						</select></td>
				</tr>
				<tr>
					<td>Fabricante:</td>
					<td><select name="fabricante">
						<option value="Nenhum" selected>Nenhum</option>
							<% 
							String[] fabricante = { "Chevrolet", "Citroen", "Fiat",
							"Ford", "Honda", "Peugeot", "Renault", "Volkswagen", "Toyota" };
							for(int i =0;i < fabricante.length;i++){
							%>
							<option value="<%=fabricante[i]%>"><%=fabricante[i]%></option>
							<%
							}
							%>
						</select></td>
				</tr>
				<tr>
					<td>Modelo:</td>
					<td><input type="text" name="modelo"></td>
				</tr>
				<tr>
					<td>Diaria:</td>
					<td><input type="text" name="diaria"></td>
				</tr>
				<tr>
					<td>KmLivre:</td>
					<td><input type="text" name="kmLivre"></td>
				</tr>
				<tr>
					<td>KmControlados:</td>
					<td><input type="text" name="kmContro"></td>
				</tr>
				<tr>
					<td>KmRodados:</td>
					<td><input type="text" name="kmRodados"></td>
				</tr>
				<tr>
					<td>Cidade:</td>
					<td><input type="text" name="cidade"></td>
				</tr>
				<tr>
					<td>Estado:</td>
					<td><select name="estado">
						<option value="Nenhum" selected>Nenhum</option>
							<% 
							String[] estado = { "AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES",
									"GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RR",
									"RO", "RJ", "RN", "RS", "SC", "SP", "SE", "TO" };

							for(int i =0;i < estado.length;i++){
							%>
							<option value="<%=estado[i]%>"><%=estado[i]%></option>
							<%
							}
							%>
						</select></td>
				</tr>

				<tr>
					<td>Acessorios:</td>
					<td><input type="text" name="acessorios"></td>
				</tr>
			</table>
			<hr>
			<table>
				<tr>
					<td><input type="submit" name="tipo" value="Inserir"/></td>
					<td><button type="reset" name="limpar">Limpar</button></td>
				</tr>
			</table>
			</div>
			</form>
		</div>
		<div id="informacoes">	
			<div id='cssmenu2'>
				<ul><p>Iago Lucas Victor. All Rights Reserved 2013</p></ul>
			</div>
		</div>
	</div>
</body>
</html>